package com.example.administrator.shzs.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import com.example.administrator.shzs.R;
import com.example.administrator.shzs.activity.BaseActivity;
import com.example.administrator.shzs.app.MyApplication;
import butterknife.Bind;
import butterknife.ButterKnife;

//我的中心更多设置
public class SystemSetActivity extends BaseActivity implements View.OnClickListener{

    @Bind(R.id.rl_idea)
    RelativeLayout rlIdea;
    @Bind(R.id.rl_terms_of_service)
    RelativeLayout rlTermsOfService;
    @Bind(R.id.rl_update)
    RelativeLayout rlUpdate;
    @Bind(R.id.rl_about)
    RelativeLayout rlAbout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_system_set);
        ButterKnife.bind(this);
        MyApplication.app.activityList.add(this);
        setListeners();
    }


    private void setListeners() {
        rlIdea.setOnClickListener(this);
        rlTermsOfService.setOnClickListener(this);
        rlUpdate.setOnClickListener(this);
        rlAbout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()) {

            case R.id.rl_idea://意见反馈

                startActivity(new Intent(this, IdeaActivity.class));


                break;


            case R.id.rl_update://检查更新


                break;


            case R.id.rl_terms_of_service://服务条款


                break;

            case R.id.rl_about://关于我们

                startActivity(new Intent(this, AboutActivity.class));

                break;
        }
    }
}
